Export Options
The export options.
Constructors
The constructor without exportPdfPageSlices, so that a call that passes all these arguments, from Java for example, keeps working. It sets exportPdfPageSlices to false.
Properties
If true, the export will include text bounding boxes that account for glyph overhangs. When enabled, text blocks with glyphs that extend beyond their frame (e.g., decorative fonts with swashes) will be exported with the full glyph bounds visible, preventing text clipping. The default value is false.
Length of one crop mark line and of one fold mark line, in design units. It shares the unit of printMarkOffset, because the exported sheet grows by the sum of the two. Values <= 0 fall back to the equivalent of 15 pt. Only used when exportPdfWithCropMarks or exportPdfWithFoldMarks is true.
Write the color profiles into the PDF: the Output profile of outputColorSpace as the OutputIntent with the condition Custom. /DefaultCMYK names the document CMYK profile that the DeviceCMYK values are written in. The file has none when that profile is the Output profile, or when outputProfileMode is not OutputProfileMode.OFF in a CMYK output. Then the OutputIntent describes the DeviceCMYK values. An RGB output without print marks has none either. sRGB becomes /DefaultRGB, except in an RGB export whose outputProfileMode is not OutputProfileMode.OFF. The file makes no PDF/X conformance claim. With outputProfileMode, each image keeps its samples. A tagged image keeps its profile as its tag, unless the engine cannot use that profile and decodes the image to sRGB. An untagged CMYK JPEG gets the document CMYK profile, so every embedding export resolves that profile. The export waits for that profile, and fails with EngineErrorCode.COLOR_PROFILE_MISSING only when the bundled fallback does not load either. An untagged RGB or gray image stays untagged. A PNG gamma chunk can give an RGB image a color space, which then tags it. A CMYK JPEG whose EXIF orientation is not up is written as RGB samples. An image under an effect, in a blurred group or with an imported definition is written from its RGB raster. When the export must decode a CMYK JPEG and cannot, as with a side above 20000 pixels, it fails with EngineErrorCode.COLOR_IMAGE_DECODE_FAILED. With exportPdfWithHighCompatibility off, a JPEG, PNG or WebP image is written at its native size. An image that does not fit in memory at that size fails the export with EngineErrorCode.ENCODE_INSUFFICIENT_RESOURCES. A JPEG keeps its original bytes when its EXIF orientation is up, and a CMYK JPEG also needs the Adobe marker. A PDF export waits for an Output profile that is still loading. It fails when the slot is empty or the profile does not load, and it accepts a profile that cannot convert. A profile that never answers fails the export with EngineErrorCode.COLOR_PROFILE_MISSING after the time that the setting exportPendingTimeoutSeconds allows. A PNG or JPEG export writes one profile into the file. With OutputProfileMode.CONVERT or OutputProfileMode.ASSIGN, it is the exact Output RGB profile, and OutputProfileMode.ASSIGN writes it also without this option. With OutputProfileMode.OFF, it is the profile of the working space, and the export does not read the Output profile. A TGA, raw data or SVG export fails with EngineErrorCode.ENCODE_OUTPUT_PROFILE_UNSUPPORTED_FORMAT, and a color mask export with EngineErrorCode.ENCODE_COLOR_MASK_OUTPUT_PROFILE_UNSUPPORTED. The default value is false.
The rectangle of the block to export instead of the whole block, in design units. Not supported for PDF. The rectangle is in the block's own space, before rotation. (0, 0) is the block's top-left corner. For a scene, the rectangle is in scene coordinates. Its width and height must be greater than 0. The export composes the rectangle like a full export of the block. The rectangle may reach outside the block. The block's margin, stroke and allowTextOverhang do not enlarge it. The output has the aspect ratio of the rectangle, at the export resolution of the scene. targetWidth and targetHeight scale the rectangle. An output smaller than 1 px is an error. The export skips most blocks on a page whose drawing, with its stroke, shadow and blur, stays outside the rectangle. It does not wait for such a block, and the block's load error does not fail it. Some blocks still draw and load, for example text and the source of a matte. The default value is null, which exports the whole block.
Export each page slice of a page as its own PDF page, in reading order. Applies to the PDF export of a scene or of one page. Each PDF page holds the part of the page inside the page slice. It has the bleed of the page on all four sides. With a bleed or printer's marks, it has a TrimBox and a BleedBox, as a page has. At a fold, the bleed strip shows the content across the fold. A hidden page slice gets no PDF page. It keeps its room in the layout, and the content it owns shows in no PDF page. A page that is not included in the export keeps its PDF pages, without content. A page that is exported itself always gives a PDF page, and an export never gives a PDF with no page because of this option. A page without page slices stays one PDF page. A page slice that is not included in the export keeps its PDF page, without its own fill and stroke. A PDF page of one page slice gets no fold marks. The default value is false.
Draw crop marks outside the bleed on every exported PDF page. Crop marks are the four pairs of corner lines that show a print shop where to cut. They are painted in the PDF registration colorant All, so they appear on every separation. Crop marks draw no fold marks: exportPdfWithFoldMarks asks for those. This grows the PDF MediaBox to the trim plus printMarkOffset + cropMarkLength on each side, because the marks live outside the bleed. The page content, the TrimBox and the BleedBox keep describing the same physical rectangles. A page whose trim is not a rectangle, so a page with page/marginScale above 1, gets no marks and no larger page. The default value is false.
Draw fold marks outside the bleed on each exported PDF page of a page with page slices. A fold is at the start of each visible page slice that follows another visible page slice. A fold mark is a line on the extension of the fold, one on each side of the page. It is drawn as a crop mark line, with the offset, weight and length of the crop marks, in the PDF registration colorant All. A fold never moves or removes a registration mark. At a fold in the middle of a page edge, the fold mark lies over the registration mark. This grows the PDF MediaBox of a page with folds on the same terms as exportPdfWithCropMarks. A page without folds, and a PDF page of one page slice, gets no fold marks and no larger sheet. The default value is false.
Export the PDF document with a higher compatibility to different PDF viewers. Bitmap images, stripe fills, conical gradients, gradients with transparency and fills with effects are rasterized with the DPI setting instead of embedding them directly. A linear or radial gradient without transparency stays a vector. When outputProfileMode is not OutputProfileMode.OFF, or with embedProfiles, a rasterized image converts or is tagged from its rendered RGB. The profile of each image and the original bytes of a CMYK JPEG reach the file only with this option off. The default value is true.
Draw registration marks outside the bleed on every exported PDF page. A registration mark is the bullseye target a press operator aligns the plates by. One sits at the middle of each page edge, and each is painted in the PDF registration colorant All, so they appear on every separation. This grows the PDF MediaBox on the same terms as exportPdfWithCropMarks, and a page whose trim is not a rectangle gets no marks either. A registration mark has one fixed size, so there is no knob for it. The default value is false.
Export the PDF document with an underlayer. An underlayer is generated by adding a graphics block behind the existing elements of the shape of the elements on the page.
The JPEG quality to use when encoding to JPEG. Valid values are (0-1], higher means better quality. Ignored for other encodings. The default value is 0.9.
The component space that a PDF export writes its colors in, and the Output profile slot it reads with SceneApi.setDocumentColorProfile. With ProfileColorSpace.RGB, the default, colors are written as DeviceRGB. With ProfileColorSpace.CMYK, every CMYK color is written as DeviceCMYK, and every spot color with CMYK values as a named Separation with a DeviceCMYK alternate. RGB colors stay DeviceRGB until outputProfileMode converts them. Any export that is not a PDF fails with EngineErrorCode.ENCODE_OUTPUT_COLOR_SPACE_UNSUPPORTED for CMYK. ProfileColorSpace.GRAY is not supported.
What a PDF export does with the document's Output profile of outputColorSpace. OutputProfileMode.OFF writes the colors as they are. OutputProfileMode.CONVERT converts every solid color into the Output profile: fills, strokes, text and the alternate of each spot color. OutputProfileMode.ASSIGN keeps the values of every solid color in the space of the Output profile. Those are CMYK colors in a CMYK output and RGB colors in an RGB output. It converts the other colors as OutputProfileMode.CONVERT does. With embedProfiles, the Output profile in the file labels the kept values. Without it, they stay device values, as the converted values of OutputProfileMode.CONVERT do. A spot color's alternate is its CMYK approximation when it has one, else its RGB approximation, and it converts unless OutputProfileMode.ASSIGN keeps it. When a color converts, an RGB color converts from sRGB. A CMYK color converts from the document CMYK profile with the document's rendering intent. A CMYK to CMYK conversion keeps a K-only value on the K plate. An Absolute Colorimetric intent converts as Relative Colorimetric there. An Output profile without a K-only link, such as an input-class profile, converts with the document's intent instead, and Absolute Colorimetric as Relative Colorimetric. A K-only value can then print with four inks, and the engine log warns. The same profile on both sides passes CMYK values through unchanged. With RGB output, a CMYK color goes through sRGB on its way to the Output profile. A gradient that the export keeps as a vector converts its stops as well. The export waits for an Output profile that is still loading. It fails with EngineErrorCode.COLOR_OUTPUT_PROFILE_NOT_SET when the slot is empty, and with EngineErrorCode.COLOR_PROFILE_MISSING when the profile does not load. It fails with EngineErrorCode.COLOR_OUTPUT_PROFILE_NOT_CONVERTIBLE when the profile has no table into its space. A profile that SceneApi.setDocumentColorProfile is still assigning is not in the slot yet, so await that call first. When the document names a CMYK profile that does not load, the bundled fallback stands in, with a warning in the log. Images convert too. With exportPdfWithHighCompatibility off, a JPEG, PNG or WebP image converts from its own profile at its native size, also above the maxImageSize setting. An image that does not fit in memory at that size fails the export with EngineErrorCode.ENCODE_INSUFFICIENT_RESOURCES. When the engine cannot use the profile of an image, such as a lookup-table profile, it decodes the image to sRGB and converts from there. A CMYK JPEG whose EXIF orientation is not up converts from its RGB decode at the capped size. Its K-only black becomes a four-ink black. A JPEG keeps its original bytes when its profile is the Output profile and its EXIF orientation is up. An untagged CMYK JPEG has the document CMYK profile, and a CMYK JPEG also needs the Adobe marker. An untagged RGB JPEG counts as sRGB and always converts. With exportPdfWithHighCompatibility off, a gray image without alpha stays DeviceGray. When the export must decode a CMYK JPEG and cannot, as with a side above 20000 pixels, it fails with EngineErrorCode.COLOR_IMAGE_DECODE_FAILED. An image that does not convert fails it with EngineErrorCode.COLOR_IMAGE_NOT_CONVERTIBLE. Effects, blurs, brush strokes and an image with an imported definition convert from RGB, so a K-only black in them becomes a four-ink black. With exportPdfWithHighCompatibility off, OutputProfileMode.ASSIGN keeps the samples of a JPEG, PNG or WebP image in the space of the Output profile. In a CMYK output, such an image is DeviceCMYK, and an upright CMYK JPEG with the Adobe marker keeps its bytes. In an RGB output, such an image keeps its samples, and so does each raster layer. With embedProfiles, the Output profile labels them, else they stay untagged. Images in the other space convert, and so does a CMYK JPEG whose EXIF orientation is not up. With OutputProfileMode.CONVERT, a PNG or JPEG export converts its pixels from the working space into the Output RGB profile. The working space is sRGB, or Display P3 with p3WorkingColorSpace. An 8-bit file stays within one level of an exact conversion. Alpha stays unchanged. Without embedProfiles, the file has no profile. With OutputProfileMode.ASSIGN, a PNG or JPEG export keeps the pixels of an OutputProfileMode.OFF export and holds the exact Output RGB profile, also without embedProfiles. A TGA, raw data or SVG export fails with EngineErrorCode.ENCODE_OUTPUT_PROFILE_UNSUPPORTED_FORMAT, and a color mask export with EngineErrorCode.ENCODE_COLOR_MASK_OUTPUT_PROFILE_UNSUPPORTED. With this option or embedProfiles, a PNG or JPEG export renders in one surface, which EditorApi.getMaxExportSize bounds. A profile that never answers fails the export with EngineErrorCode.COLOR_PROFILE_MISSING after the time that the setting exportPendingTimeoutSeconds allows. The default value is OutputProfileMode.OFF.
Upper bound, in bytes, for a single chunk of a streamed export. It matters most for the streamed BlockApi.export overloads, where this is the memory the caller has to hold for one chunk. A larger value lowers the per-chunk overhead and raises the memory each chunk costs. A smaller value does the opposite. null, the default, uses an engine-chosen size, and so does a value below 1. Any other value is clamped to 4096, 67108864, so an unusable request lowers the quality of the trade rather than failing the export. Note this is a bound and not a chunk size: the encoder also flushes after each page, so the last chunk of a page is normally smaller.
The encoding quality to use for images that have to be rasterized during PDF export, e.g. images with effects or blurs applied, or any bitmap image when exportPdfWithHighCompatibility is enabled. Valid values are (0-1]. Exactly 1.0 (the default) keeps the lossless encoding, like webpQuality. Any value below 1.0 re-encodes rasterized images as lossy JPEG at the given quality, which produces much smaller files. Only rasterized content that is fully opaque can be re-encoded, because JPEG has no alpha channel. Content that keeps transparency, for example when exporting a block or a page without a background fill, stays losslessly encoded whatever this option is set to. Images whose original JPEG data is embedded directly are never re-encoded and are not affected by this option. Images that outputProfileMode converts stay lossless too. A CMYK JPEG that embedProfiles writes as samples stays lossless too. The default value is 1.0.
The PNG compression level to use, when exporting to PNG. Valid values are 0 to 9, higher means smaller, but slower. Quality is not affected. Ignored for other encodings. The default value is 5.
Keep black as black ink where outputProfileMode converts a color. With CMYK output, an exact RGB black becomes 0/0/0/100 K instead of a rich black. With RGB output, a K-only CMYK black becomes exact RGB black, and an exact RGB black stays exact. Images and PNG and JPEG exports ignore this option. Ignored when outputProfileMode is OutputProfileMode.OFF. The default value is false.
Distance from the trim to the nearest edge of any printer's mark, in design units. Every mark type shares it, so it is comparable with the page bleed without converting. A negative value falls back to the equivalent of 6 pt. Zero is a real offset that places a mark on the trim edge. A mark may reach into the bleed, which the knife removes anyway, and every mark carries a white knockout underneath so it stays legible over artwork. Only used when a PDF export draws printer's marks.
Stroke width of any printer's mark, in points. Every mark type shares it, and a print shop calls it the weight. Points, not design units, because a weight is a print measure that never meets the page geometry. Must be 0. Values <= 0 fall back to 0.25, a hairline. Only used when a PDF export draws printer's marks.
An optional target height. If used, the block will be rendered large enough that it fills the target size entirely while maintaining its aspect ratio. Without a target width, the width follows from that aspect ratio.
An optional target width. If used, the block will be rendered large enough that it fills the target size entirely while maintaining its aspect ratio. Without a target height, the height follows from that aspect ratio.
Maximum acceptable curve-fit error, in pixels, when vectorising the underlayer contour. Smaller values produce tighter fits at the cost of more path complexity. Useful together with underlayerRenderRatio for small text on large pages. Must be 0. Values <= 0 fall back to 2.0. Defaults to 2.0 for backward compatibility.
The width that a part of the underlayer keeps at least when a negative underlayerOffset shrinks it, in the same unit as underlayerOffset. A part that the shrink would make thinner keeps this width along its middle, and a part that is already thinner keeps its own shape. No effect when underlayerOffset is 0 or more. Values <= 0 turn it off. Defaults to 0.
The adjustment in size of the shape of the underlayer.
Resolution multiplier for the raster pass that extracts the underlayer contour. Higher values produce sharper underlayer outlines at the cost of memory and export time. Useful for small text on large pages, where the 1.0 default can miss fine glyph details. Must be 0. Values <= 0 fall back to 1.0. Defaults to 1.0 for backward compatibility.
The name of the spot color to be used for the underlayer's fill.
The WebP quality to use when encoding to WebP. Valid values are (0-1], higher means better quality. WebP uses a special lossless encoding that usually produces smaller file sizes than PNG. Ignored for other encodings. Defaults to 1.0.